package com.offcn.service;

import com.offcn.entity.Movie;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "PROVIDERMOVIE" , fallback = MovieServiceFeignFallBack.class) //注意:与被调用的服务名称一致
public interface MovieServiceFeign {
    @GetMapping("/movie")
    public Movie getMovie(); //与被调用服务的方法映射一致
}
